package com.zhanghe.mall.pojo;

import com.zhanghe.mall.pojo.common.BasePojo;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * AttributeProperty
 *  属性值表
 * @author Clevo
 * @date 2018/7/18
 */
@Entity
@Table(name = "attribute_property")
public class AttributeProperty extends BasePojo {

    @ManyToOne
    @JoinColumn(name = "attribute_id")
    private ClassificationAttribute classificationAttribute;

    private String value;

    private Integer sort;

    public ClassificationAttribute getClassificationAttribute() {
        return classificationAttribute;
    }

    public void setClassificationAttribute(ClassificationAttribute classificationAttribute) {
        this.classificationAttribute = classificationAttribute;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getValue() {

        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
